From aa569acaa14a79a94eadbd18bd80b28852ec7e29 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 24 Apr 2021 11:29:19 -0400 Subject: [PATCH] window: Don't let solid-csd linger Just from reading the code, it seems that we should unset .csd and .solid-csd at the same time, since the are mutually exclusive and we unset them here so realize() can set one of them again. --- gtk/gtkwindow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 88a4e9721a..d7048ed412 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -3038,8 +3038,10 @@ gtk_window_set_titlebar (GtkWindow *window, if (titlebar == NULL) { + /* these are updated in realize() */ priv->client_decorated = FALSE; gtk_widget_remove_css_class (widget, "csd"); + gtk_widget_remove_css_class (widget, "solid-csd"); goto out; } -- 2.30.2